﻿using System.Windows.Forms;

namespace Easy2Java
{
    public partial class Help : Form
    {
        private int lang = 0;
        language l = new language();
        public Help()
        {
            InitializeComponent();
        }
        public Help(int n)
        {
            InitializeComponent();
            lang = n;
            ShowHelp(n);
            lLabel1.Text = l.ll1text[lang];
            label2.Text = "Ver 0.3b";
        }
        private void ShowHelp(int n)
        {
            if (n == 0)
            {
                text1.Text = l.zh_CN;
            }
            else
            {
                text1.Text = l.en_US;
            }
        }

        private void lLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("https://gitee.com/deimoe/Easy2Java");
        }
    }
    public class language
    {
        public string zh_CN = "  这是一份帮助文件，其内容固定在代码里，但丝毫不影响您使用本软件。\n  如果你是新电脑，想要安装JDK，您需要先下载JDK，再配置环境变量。作者推荐您配置好环境变量后重启一次电脑，以免发生不必要的错误。\n JDK来源于腾讯下载中心，数字签名等均是官方未修改";
        public string en_US = "  This is a help file, the content of which is fixed in the code, but does not affect your use of the software. \n   if you are a new computer and want to install JDK, you need to download JDK first, and then configure environment variables. The author recommends that you restart the computer after configuring the environment variables to avoid unnecessary errors.\n  JDK comes from Tencent Download Center, and the digital signature is official and has not been modified";
        public string[] ll1text = { "查看源代码", "Check Sourse Code" };
    }
}
